/* Modal Backdrop */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}

/* Modal Container */
.qris-modal {
    background: #ffffff;
    width: 100%;
    max-width: 540px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.2px;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.close-btn:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Modal Body */
.modal-body {
    padding: 22px 24px 28px;
}

/* Status & Amount Row */
.payment-status-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
}

.status-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5em;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.status-heading svg {
    color: #374151;
    flex-shrink: 0;
}

.expiry-text {
    font-size: 1.3em;
    color: #6b7280;
}

.expiry-time {
    color: #dc2626;
    font-weight: 500;
}

.total-amount {
    font-size: 1.5em;
    color: #6b7280;
    white-space: nowrap;
}

.total-amount strong {
    color: #111827;
    font-size: 1.5em;
    font-weight: 700;
    margin-left: 4px;
}

/* QR Code Inner Card */
.qr-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px 32px;
    margin-bottom: 22px;
}

.qr-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.qris-badge {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 1.2em;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #111827;
}

.qr-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.qr-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-box img,
.qr-box svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Instructions Section */
.instructions-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.instructions-list {
    padding-left: 18px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.65;
}
